<div class="layui-form-item">
    <label class="layui-form-label">{$value['desc']}</label>
    <div class="layui-input-block" style="width: 30%">

        <div class="layui-col-xs12" style="margin-top: 10px">
            <div class="layui-col-xs4" style="text-align: center;">{$value['option'][0]}</div>
            <div class="layui-col-xs4 layui-col-xs-offset1" style="text-align: center">{$value['option'][1]}</div>
            <div class="layui-col-xs3" style="text-align: center">操作</div>
        </div>
        <br>
        <div class="tianjia">
        {if $value['value']}
        {php}$index = 0;{/php}
        {foreach $value['value'] as $ke=>$va}
        {if $index==0}
        <div class="layui-col-xs12 queding" style="margin-top: 10px">
            <div class="layui-col-xs4"><input type="text" name="{$value['name']}[{$value['option'][0]}][]" class="layui-input" value="{$ke}"></div>
            <div class="layui-col-xs4 layui-col-xs-offset1"><input type="text" name="{$value['name']}[{$value['option'][1]}][]" value="{$va}" class="layui-input" ></div>
            <div class="layui-col-xs3" style="text-align: center;line-height: 38px;cursor: pointer;color: green" onclick="tianjiajson(this)" data-name="{$value['name']}" data-option0="{$value['option'][0]}" data-option1="{$value['option'][1]}">添加</div>
        </div>
        {else}
        <div class="layui-col-xs12 queding" style="margin-top: 10px">
            <div class="layui-col-xs4"><input type="text" name="{$value['name']}[{$value['option'][0]}][]" class="layui-input" value="{$ke}"></div>
            <div class="layui-col-xs4 layui-col-xs-offset1"><input type="text" name="{$value['name']}[{$value['option'][1]}][]" value="{$va}" class="layui-input" ></div>
            <div class="layui-col-xs3" style="text-align: center;line-height: 38px;cursor: pointer;color: red" onclick="jiesaojson(this)">减少</div>
        </div>
        {/if}
        {php}$index++;{/php}
        {/foreach}
        {else}
        <div class="layui-col-xs12 queding" style="margin-top: 10px">
            <div class="layui-col-xs4"><input type="text" name="{$value['name']}[{$value['option'][0]}][]" class="layui-input"></div>
            <div class="layui-col-xs4 layui-col-xs-offset1"><input type="text" name="{$value['name']}[{$value['option'][1]}][]" class="layui-input" ></div>
            <div class="layui-col-xs3" style="text-align: center;line-height: 38px;cursor: pointer;color: green" onclick="tianjiajson(this)" data-name="{$value['name']}" data-option0="{$value['option'][0]}" data-option1="{$value['option'][1]}">添加</div>
        </div>
        {/if}
        </div>
        <br>
        <span class="red" style="font-size: 10px;margin-top: 10px">{$value['describe']}</span>
    </div>
</div>